package org.bt4girls.oauth.mappy;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.bt4girls.common.model.oauth.TbUserBase;
import org.springframework.stereotype.Service;

@Service
public interface TbUserBaseMapper {
    int deleteByPrimaryKey(Long id);

    TbUserBase selectByPrimaryKey(Long id);

    @ResultMap("BaseResultMap")
    @Select("SELECT " +
            "id,username,password " +
            "FROM tb_user_base " +
            "WHERE username = #{username}")
    TbUserBase selectBaseByUsername(@Param("username")String username);
}